<template>
  <div>
    <ul class="d5_2" id="concernContented">
      <li>
        <span>关注ta的人</span>
         <div class="bfans" v-for="fan in fans" :key="fan">
          <img :src="`http://localhost:3000/upload/${fan.headImg}`" alt="">
          <router-link tag="p" to="">{{fan.nickName}}</router-link>
          <p>{{fan.occupation}}</p>
        </div>
        <div style="clear:both ;height:20px"></div>
        <div class="deve_none" v-if="none">
          <svg
            t="1602726119046"
            class="icon"
            viewBox="0 0 1024 1024"
            version="1.1"
            xmlns="http://www.w3.org/2000/svg"
            p-id="13500"
            width="80"
            height="120"
          >
            <path
              d="M793.4 665.582c3.387-4.308 22.475-27.091-3.387-52.643-5.547-4.926-55.006-54.293-136.486-84.047 1.843-2.258 87.641-58.702 104.056-172.41 1.235-15.596 21.346-167.887-129.299-255.318-10.266-4.925-128.9-71.837-260.664 11.08-12.933 9.03-102.826 72.45-111.446 191.291-1.235 11.081-11.086 144.079 106.521 224.122 0 0-265.999 88.672-271.743 390.788 0.825 9.85 7.385 32.836 33.656 35.711 7.395-0.415 37.356 0 38.591-40.231 0-15.19-1.853-165.83 139.155-271.743 11.697-8.621 110.211-88.046 268.458-62.185 18.471 3.694 100.982 17.857 173.631 88.661C747.525 670.815 771.544 687.135 793.4 665.582L793.4 665.582zM508.208 503.437c-101.335 0-183.48-82.146-183.48-183.478 0-101.334 82.145-183.48 183.48-183.48 101.335 0 183.481 82.146 183.481 183.48C691.689 421.291 609.538 503.437 508.208 503.437L508.208 503.437zM508.208 503.437"
              p-id="13501"
              fill="#EBEEF5"
            />
            <path
              d="M901.769 790.578l-61.885 0 0-64.037c-5.847-27.708-32.938-29.561-36.521-30.168-34.375 5.537-33.666 30.781-33.666 30.781l0 63.424c0 0-50.801-0.309-60.347-0.309-33.246 2.151-34.785 28.943-35.089 34.992 1.843 32.837 29.242 35.817 29.242 35.817l66.188 0.304c0 0-0.922 58.191 0 65.576 4.313 25.243 26.792 26.782 33.671 27.197 34.587-2.977 35.6-32.122 35.6-32.122l0.927-60.651 65.575 0c24.939-6.767 26.782-29.551 27.096-36.632C928.556 790.27 901.769 790.578 901.769 790.578L901.769 790.578zM901.769 790.578"
              p-id="13502"
              fill="#EBEEF5"
            />
          </svg>
          <div class="no_dynamic">
            还没有人关注ta
          </div>
        </div>
      </li>
    </ul>
  </div>
</template>
<script>
export default {
  data(){
     return{
       none:true,
       ouids:'',
       fans:''
     }
   },
   created(){
     this.ouids=this.$store.state.oUid
     this.$axios.get('/api/users/fansall',{params:{uid:this.ouids}})
                .then(res=>{
                    console.log('res',res)
                    this.fans=res.data.data
                    // console.log('userts',this.fans)
                    if(this.fans.length){
                      this.none=!this.none
                    }
                })
                .catch(err=>{
                    console.log('err:',err)
                })
   }
};
</script>